import Mock from "mockjs"

const data=Mock.mock({
    "list|100":[{
        "img":"@image(150x100,@color)",
        "title":"@ctitle",
        "desc":"@cword(10,15)",
        "price|10-99":1,
        "id":"@id"
    }]
})

Mock.mock('/api/list','post',()=>{
    return({
        code:200,
        data:data.list
    })
})